<%@page import="java.net.URLDecoder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改留言</title>
</head>
<body>
<%
	String title=(String)request.getParameter("title");
	String content=(String)request.getParameter("content");
	title=URLDecoder.decode(title,   "utf-8"); 
	content=URLDecoder.decode(content,   "utf-8");
	String id=request.getParameter("id");
	request.getSession().setAttribute("MessageId", id);
%>
<h1>请输入留言内容</h1>
	<form action="<%=request.getContextPath() %>/MessageServlet" method="post">
		<table>
			<tr>
				<td>主题：</td>
				<td><input type="text" name="title" value="<%=title%>"></td>
			</tr>
			<tr>
				<td>内容：</td>
				<td><textarea rows="10" cols="80" name="content"><%=content%></textarea></td>
			</tr>
			<tr>
				<td><input name="submittype" type="submit" value="修改留言"/></td>
				<td><input name="submittype" type="reset" value="重置"/></td>
			</tr>
		</table>
	</form>
	<p>${error}</p>
	<a href="<%=request.getContextPath() %>/MessageServlet?submittype=show">返回</a>
</body>
</html>